package com.wsm.springcloud_compose.compose_user_consumer_feign.service.hystrix;

import com.wsm.springcloud_compose.compose_user_bean.response.SysUsersResponse;
import com.wsm.springcloud_compose.compose_user_consumer_feign.service.UserService;
import org.springframework.stereotype.Component;

/**
 * @name: AdminServiceHystrix
 * @Author: wangshimin
 * @Date: 2019-09-01  17:37
 * @Description:
 */
@Component
public class UserServiceHystrix implements UserService {

    @Override
    public SysUsersResponse login(String userName) {
        SysUsersResponse sysUsers = new SysUsersResponse(1, "wsm", "123", "salt", "123", 0);
        return sysUsers;
    }

    /*@Override
    public List<SysRoles> getRolesById(long id) {
        return null;
    }

    @Override
    public List<SysPermissions> getPermissionsById(long id) {
        return null;
    }*/
}